package com.avic.rong.userOrder.api;

import com.avic.rong.api.HttpPostService;
import com.example.minato.minastore.BaseApi;
import com.example.minato.minastore.listener.HttpOnNextListener;
import com.trello.rxlifecycle2.components.support.RxAppCompatActivity;

import java.util.Map;

import io.reactivex.Observable;
import retrofit2.Retrofit;

/**
 * Created by XinEr on 2019/7/29.
 * Describe:
 */
public class OrderCancelApi extends BaseApi {
    private Map<String,String> map;

    public void setMap(Map<String, String> map) {
        this.map = map;
    }
    public OrderCancelApi(RxAppCompatActivity fragmentActivity, HttpOnNextListener listener) {
        super(fragmentActivity, listener);
    }

    @Override
    public Observable getObservable(Retrofit retrofit) {
        HttpPostService postService = retrofit.create(HttpPostService.class);
        return postService.orderCancel(map);
    }

}
